package com.zzj.security.jwt.service.impl;

import com.zzj.security.jwt.entity.SysMenu;
import com.zzj.security.jwt.repository.SysMenuRepository;
import com.zzj.security.jwt.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("sysMenuService")
@Transactional
public class SysMenuServiceImpl implements SysMenuService {
    @Autowired
    private SysMenuRepository sysMenuRepository;
    @Override
    public List<SysMenu> findAll() {
        return sysMenuRepository.findAll();
    }
}
